//
//  GWGoodsListView.h
//  ShandsMod
//
//  Created by zh_s on 4/22/21.
//  Copyright © 2021 zh_s. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "HelpWordsModel.h"

NS_ASSUME_NONNULL_BEGIN

@protocol GWGoodsListViewDelegate <NSObject>

- (void)updateDataArrWithArr:(NSArray *)arr withDeleteModel:(HelpWordsModel *)deleteModel withIsDelete:(BOOL)isDelete;

@end

@interface GWGoodsListView : UIView{
    CGRect previousFrame ;
}
/**
* 总高度
*/
@property (nonatomic, assign) int totalHeight;
/**
 * 整个view的背景色
 */
@property(nonatomic,retain)UIColor *GBbackgroundColor;
/**
 *  设置单一颜色
 */
@property(nonatomic)UIColor *signalTagColor;

@property (nonatomic, strong) NSMutableArray *tagArr;

/**
 *  回调统计选中tag
 */
@property(nonatomic,copy)void (^didselectItemBlock)(NSArray*arr);

/**
 *  是否可点击
 */
@property(nonatomic) BOOL canTouch;
/**
 *  是否可删除
 */
@property(nonatomic) BOOL canDelete;
/**
 *  设置单一颜色
 */
@property(nonatomic)UIColor *btnBackColor;

/**

 *  限制点击个数
 *  0->不限制
 *  不设置此属性默认不限制
 */
@property(nonatomic) NSInteger canTouchNum;

/** 单选模式,该属性的优先级要高于canTouchNum */

@property(nonatomic) BOOL isSingleSelect;
/**
 *  标签文本赋值
 */
-(void)setTagWithTagArray:(NSArray*)arr;
/**
 *  设置tag之间的距离
 *
 *  @param Margin
 */
-(void)setMarginBetweenTagLabel:(CGFloat)Margin AndBottomMargin:(CGFloat)BottomMargin;

@property (nonatomic, assign) id <GWGoodsListViewDelegate> delegate;

@end

NS_ASSUME_NONNULL_END
